package com.sg.dto.biz.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc ModifyColumnDto
 * @使用场景
 */
@Data
public class ModifyColumnDto extends BaseDto implements Serializable {

    /**
     * 变更字段记录ID
     */
    @ApiModelProperty("变更字段记录ID")
    private String changeColumnId;

    /**
     * 变更字段英文名
     */
    @ApiModelProperty("变更字段英文名")
    private String objectPropertyCode;

    /**
     * 变更字段行为日志名称
     */
    @ApiModelProperty("变更字段行为日志名称")
    private String objectPropertyName;

    /**
     * 变更字段内容
     */
    @ApiModelProperty("变更字段内容")
    private String metaDataColumnContent;

    /**
     * 原始字段中文内容
     */
    @ApiModelProperty("原始字段中文内容")
    private String oriColumnContent;

    /**
     * 变更字段中文内容
     */
    @ApiModelProperty("变更字段中文内容")
    private String columnContent;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        ModifyColumnDto that = (ModifyColumnDto) o;
        return changeColumnId == that.changeColumnId && objectPropertyCode == that.objectPropertyCode && objectPropertyName == that.objectPropertyName && metaDataColumnContent == that.metaDataColumnContent && oriColumnContent == that.oriColumnContent && columnContent == that.columnContent;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), changeColumnId, objectPropertyCode, objectPropertyName, metaDataColumnContent, oriColumnContent, columnContent);
    }


}
   